package com.eva.dao.cms.model;

import com.eva.framework.mp.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import lombok.experimental.SuperBuilder;

@Data
@Accessors(chain = true)
@SuperBuilder
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel("文章管理")
@TableName("`cms_article`")
public class CmsArticle extends BaseModel {

    @TableField("`uid`")
    @ApiModelProperty(value="文章标识")
    private String uid;

    @TableField("`category_ids`")
    @ApiModelProperty(value="所属栏目ID集")
    private String categoryIds;

    @TableField("`tag_ids`")
    @ApiModelProperty(value="所属标签ID集")
    private String tagIds;

    @TableField("`title`")
    @ApiModelProperty(value="文章标题")
    private String title;

    @TableField("`content`")
    @ApiModelProperty(value="文章内容")
    private String content;

    @TableField("`content_digest`")
    @ApiModelProperty(value="内容摘要")
    private String contentDigest;

    @TableField("`keywords`")
    @ApiModelProperty(value="关键字")
    private String keywords;

    @TableField("`cover`")
    @ApiModelProperty(value="文章封面图")
    private String cover;

    @TableField("`images`")
    @ApiModelProperty(value="图片集")
    private String images;

    @TableField("`attachments`")
    @ApiModelProperty(value="附件集")
    private String attachments;

    @TableField("`status`")
    @ApiModelProperty(value="状态")
    private String status;

}
